package com.sun.service.impl;

import com.sun.mapper.itemMapper;
import com.sun.pojo.item;
import com.sun.pojo.item2;
import com.sun.service.itemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class itemServiceImpl implements itemService {
    @Autowired
    itemMapper mapper;
    @Override
    public void insert(item item) {
         mapper.insert(item);
    }

    @Override
    public List<item> select(item2 item) {
        return mapper.select(item);
    }

    @Override
    public void del(int id) {
        mapper.del(id);
    }

    @Override
    public void fix(item item) {
        mapper.fix(item);
    }
}
